package com._520it.member.web.controller;


import com._520it.member.domain.SystemMenu;
import com._520it.member.service.ISystemMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/systemMenu")
public class SystemMenuController {
	@Autowired
	ISystemMenuService systemMenuService;

	@RequestMapping("/indexMenu")
	@ResponseBody
	public List<SystemMenu> indexMenu(){
		List<SystemMenu> result = systemMenuService.indexMenu();
		return result;
	}
}
